package cn.sxt.logistics.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author ${author}
 * @since 2020-06-24
 */
@TableName("t_order")
public class Order implements Serializable {

    private static final long serialVersionUID=1L;

      /**
     * 订单id
     */
        @TableId(value = "order_id", type = IdType.AUTO)
      private Long orderId;

      /**
     * 管理员id
     */
      private Long adminId;

      /**
     * 客户id
     */
      private Long customerId;

      /**
     * 发货地址
     */
      private String shipperAddress;

      /**
     * 发货人
     */
      private String shipperName;

      /**
     * 发货电话
     */
      private String shipperPhone;

      /**
     * 取件联系人
     */
      private String takeName;

      /**
     * 取件地址
     */
      private String takeAddress;

      /**
     * 取件电话
     */
      private String takePhone;

      /**
     * 订单状态 1 取件 2 运送中 3 完成
     */
      private Integer orderStatus;

      /**
     * 付款方式
     */
      private String paymentMethod;

      /**
     * 到达区域
     */
      private String region;

      /**
     * 取件方式
     */
      private String takeMethod;

      /**
     * 货运方式
     */
      private String freightMethod;

      /**
     * 订单备注
     */
      private String orderRemark;

      //MP新增时候忽略
      @TableField(exist = false)
      private List<OrderDetail> orderDetails;

    public List<OrderDetail> getOrderDetails() {
        return orderDetails;
    }

    public void setOrderDetails(List<OrderDetail> orderDetails) {
        this.orderDetails = orderDetails;
    }

    public Long getOrderId() {
        return orderId;
    }

      public void setOrderId(Long orderId) {
          this.orderId = orderId;
      }
    
    public Long getAdminId() {
        return adminId;
    }

      public void setAdminId(Long adminId) {
          this.adminId = adminId;
      }
    
    public Long getCustomerId() {
        return customerId;
    }

      public void setCustomerId(Long customerId) {
          this.customerId = customerId;
      }
    
    public String getShipperAddress() {
        return shipperAddress;
    }

      public void setShipperAddress(String shipperAddress) {
          this.shipperAddress = shipperAddress;
      }
    
    public String getShipperName() {
        return shipperName;
    }

      public void setShipperName(String shipperName) {
          this.shipperName = shipperName;
      }
    
    public String getShipperPhone() {
        return shipperPhone;
    }

      public void setShipperPhone(String shipperPhone) {
          this.shipperPhone = shipperPhone;
      }
    
    public String getTakeName() {
        return takeName;
    }

      public void setTakeName(String takeName) {
          this.takeName = takeName;
      }
    
    public String getTakeAddress() {
        return takeAddress;
    }

      public void setTakeAddress(String takeAddress) {
          this.takeAddress = takeAddress;
      }
    
    public String getTakePhone() {
        return takePhone;
    }

      public void setTakePhone(String takePhone) {
          this.takePhone = takePhone;
      }
    
    public Integer getOrderStatus() {
        return orderStatus;
    }

      public void setOrderStatus(Integer orderStatus) {
          this.orderStatus = orderStatus;
      }
    
    public String getPaymentMethod() {
        return paymentMethod;
    }

      public void setPaymentMethod(String paymentMethod) {
          this.paymentMethod = paymentMethod;
      }
    
    public String getRegion() {
        return region;
    }

      public void setRegion(String region) {
          this.region = region;
      }
    
    public String getTakeMethod() {
        return takeMethod;
    }

      public void setTakeMethod(String takeMethod) {
          this.takeMethod = takeMethod;
      }
    
    public String getFreightMethod() {
        return freightMethod;
    }

      public void setFreightMethod(String freightMethod) {
          this.freightMethod = freightMethod;
      }
    
    public String getOrderRemark() {
        return orderRemark;
    }

      public void setOrderRemark(String orderRemark) {
          this.orderRemark = orderRemark;
      }

    @Override
    public String toString() {
        return "Order{" +
              "orderId=" + orderId +
                  ", adminId=" + adminId +
                  ", customerId=" + customerId +
                  ", shipperAddress=" + shipperAddress +
                  ", shipperName=" + shipperName +
                  ", shipperPhone=" + shipperPhone +
                  ", takeName=" + takeName +
                  ", takeAddress=" + takeAddress +
                  ", takePhone=" + takePhone +
                  ", orderStatus=" + orderStatus +
                  ", paymentMethod=" + paymentMethod +
                  ", region=" + region +
                  ", takeMethod=" + takeMethod +
                  ", freightMethod=" + freightMethod +
                  ", orderRemark=" + orderRemark +
              "}";
    }
}
